package com.kandinfo.survey.common.repository;

import org.springframework.data.jpa.repository.Query;

import com.kandinfo.base.common.repository.BaseRepository;
import com.kandinfo.survey.common.domain.PatientFamilyRela;

public interface PatientFamilyRelaRepository extends BaseRepository<PatientFamilyRela, Long> {

    @Query(value = "select * from patient_family_rela where familly_id = ?1 and status='1' ", nativeQuery = true)
    PatientFamilyRela findByFamilyId(Long familyId);

}
